package com.woniu.meals.client;

import com.woniu.meals.dto.AddressDto;
import com.woniu.meals.dto.StoreDto;
import com.woniu.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * @author jiang
 */
@FeignClient(path = "/meals",name = "xinan-meals")
public interface MealsFeignClient {
    @GetMapping("/address/selectAddress")
    public Result<List<AddressDto>> selectAddress(@RequestParam("userId") Integer userId);

    @GetMapping("/store/selectStoreByUserId")
    public Result<StoreDto> selectStoreByUserId(@RequestParam("userId") Integer userId);

}
